package wflow.remote.remote.command;

import wflow.remote.remote.utils.JSONUtils;

public class CommandContext {
    private Long id;

    public byte[] toBytes() {
        return JSONUtils.toJsonByteArray(this);
    }

    public static CommandContext valueOf(byte[] bytes) {
        return JSONUtils.parseObject(bytes, CommandContext.class);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
